<script setup>
import { ref } from 'vue';
import Son from './components/Son.vue';

const money = ref(10000);
const car = ref('兰博基尼');
const add = (num) => {
  money.value += num;
};
</script>

<template>
  <div>父组件 - {{ money }}</div>
  <Son :money="money" @add="add"></Son>
</template>
